<?php echo $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php echo $this->headTitle(); ?>
        <?php echo $this->headMeta(); ?>
        <?php echo $this->headLink(); ?>
        <?php echo $this->headStyle() ?>        
        <?php echo $this->headScript()
                ->prependFile('/js/init-front.js')
                ->prependFile('/js/jquery.min.js')
        ?>        
        <script src="http://code.jquery.com/ui/1.9.0/jquery-ui.min.js" type="text/javascript"></script>
        <meta content="<?php echo isset($this->desc) ? $this->desc : 'Lamp-CMS is simple cms system on Zend Framework for every one' ?>" name="description" />
        <meta content="<?php echo isset($this->keys) ? $this->keys : 'lamp cms, php cms, cms, zend framework' ?>" name="keywords" />
    </head>
    <body>

        <div id="top-bar"></div>

        <div id="main">
            <div id="wrap">

                <div id="main-wrap">  

                    <div id="menu"><?php echo $this->render('front/menu-top.phtml') ?></div>

                    <div id="slider-top">
                        <div class="slider-wrap">
                            <?php
                            echo $this->slider(array(
                                'items' => $this->sliderItems
                                    )
                            );
                            ?>
                        </div>
                    </div>

                    <div id="content" class="<?php echo $this->request->getControllerName() . '-' . $this->request->getActionName() ?>">
                        <div id="<?php echo $this->request->getControllerName() . '-' . $this->request->getActionName() ?>">

                            <?php if ($this->flashMessenger->count() > 0) { ?>
                                <div class="ui-message">
                                    <div class="message-wrap">
                                        <div class="center upper">
                                            <ul>
                                                <?php foreach ($this->flashMessenger->getMessages() as $key => $msg) { ?>
                                                    <li><?php echo $msg; ?></li>
                                                <?php } ?>
                                            </ul>                                            
                                        </div>
                                        <div class="ui-dots"></div>
                                        <div class="center">
                                            <?php echo $this->uiButton(array('text' => 'Powrót', 'class' => 'powrot', 'link' => $this->session->link ? $this->session->link : '/')) ?>
                                        </div>
                                    </div>
                                </div>
                            <?php } ?>

                            <div id="box-top">
                                <?php
                                echo $this->displayBox(
                                        array(
                                            'items' => $this->topBoxItems
                                        )
                                );
                                ?>
                            </div>
                            <div id="content-panel">
                                <?php if (!$this->displayLeftBoxOff) { ?>
                                    <div class="panel-left fl">
                                        <div class="panel-wrap">
                                            <?php
                                            echo $this->displayBox(
                                                    array(
                                                        'titleTag' => 'h3',
                                                        'items' => $this->leftBoxItems
                                                    )
                                            );
                                            ?>
                                        </div>
                                    </div>
                                <?php } ?>
                                <div class="panel-center fl">
                                    <div class="panel-wrap">
                                        <?php echo $this->layout()->content; ?>
                                        <?php
                                        if (!$this->displayContentOff) {
                                            echo $this->displayContent(
                                                    array(
                                                        'items' => $this->contentItems
                                                    )
                                            );
                                        }
                                        ?>
                                    </div>
                                </div>
                            </div>
                            <div class="cls"></div>

                        </div>
                    </div>

                    <div id="foot">
                        <?php echo $this->render('front/foot.phtml') ?>
                    </div>

                </div>
            </div>

            <div class="preloader">
                <div id="p" class="loader" >
                    <div class="preloader-wrap">
                        <div class="preloader-info">
                            <div class="ico fl"></div>
                            <div class="label fr"></div>
                            <div class="cls"></div>
                        </div>
                    </div>
                </div>
            </div>
            <?php echo $this->inlineScript(); ?>
        </div>
    </body>
</html>